package com.example.exam.mapper;

import com.example.exam.pojo.entity.TUser;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.exam.pojo.vo.UserVO.UserPageVO;
import com.example.exam.pojo.vo.UserVO.UserResponseVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author xiaohu
 * @since 2022-12-26
 */

//extends BaseMapper<TUser>
@Repository
public interface TUserMapper extends BaseMapper<TUser>  {


       @Select("select * from t_user where user_name=#{name} and deleted=0 limit 1")
      TUser    selectByName(@Param("name") String name);
    List<TUser> userPage( UserPageVO userPageVO);
}
